<template>
    <div class="before-container">
        <AnalysisGraph ref="analysisGraph" :id="'before'" :graph-data="beforeGraphData" :link-types="linkTypes" :labels="labels" :names="names"></AnalysisGraph>
    </div>
</template>

<script>
import AnalysisGraph from "@/page/risk/component/AnalysisGraph.vue";

export default {
    name: "BeforeAnalysis",
    components: {AnalysisGraph},
    data(){
        return{
            names: ['公司名称', '工业', '产品', '国家'],
            labels: ['company', 'industry', 'product', 'holdCompany'],
            linkTypes: ['', 'suoshuhangye', 'zhuyingchanpin', 'chanpinxiaolei', 'shangyoucailiao'],
        }
    },
    props:{
        beforeGraphData:{
            type:Object,
            required:true
        }
    },
    mounted() {
        this.$refs.analysisGraph.d3init()
    }
}
</script>

<style scoped>
.before-container{
    width: 100%;
    height: 100%;
}
</style>